﻿// ***********************************************************************
// Assembly         : SecurityLayer
// Author           : LJO+01 (Laurent Jordi)
// Created          : 06-05-2013
// Last Modified By : LJO+01 (Laurent Jordi)
// Last Modified On : 06-05-2013
// ***********************************************************************
// <copyright file="ChangePassword_MetaData.cs" company="Copyright © Innovacall 2011">
//     Copyright (c) Copyright © Innovacall 2011. All rights reserved.
// </copyright>
// <summary></summary>
// ***********************************************************************
using System.ComponentModel.DataAnnotations;
using InnovaApp.Layers.ResourcesLayer.Properties;
using InnovaApp.Layers.SecurityLayer.Models.AccountModels.MembershipValidation;
using INNOVACALL.Framework.Common.MVCHelpers.Localization;

namespace InnovaApp.Layers.SecurityLayer.Models.MetaData
{
    /// <summary>
    /// Class ChangePassword_MetaData
    /// </summary>
	public class ChangePassword_MetaData : _MetaData_Base
	{
        /// <summary>
        /// Gets or sets the membership user id.
        /// </summary>
        /// <value>The membership user id.</value>
		[Display(Name = "Id")]
		public System.Guid MembershipUserId { get; set; }

        /// <summary>
        /// Gets or sets the old password.
        /// </summary>
        /// <value>The old password.</value>
		[Required]
		[DataType(DataType.Password)]
		[Display(ResourceType = typeof(Resources), Name = "View_ChangePassword_Account_OldPassword")]
		public string OldPassword { get; set; }

        /// <summary>
        /// Gets or sets the new password.
        /// </summary>
        /// <value>The new password.</value>
		[Required]
		[DataType(DataType.Password)]
		[ValidatePasswordLength(ErrorMessageResourceName = "ChangePassword_PasswordLength", ErrorMessageResourceType = typeof(Resources))]
		[Display(ResourceType = typeof(Resources), Name = "View_ChangePassword_Account_NewPassword")]
		public string NewPassword { get; set; }
	}
}
